package work;

public class Recursion {
    public long getRecursion(long n){
        if (n==1){
            return 1;
        }
        return n*getRecursion(n-1);
    }

    public static void main(String[] args) {
        Recursion recursion = new Recursion();
        System.out.println(recursion.getRecursion(10));
    }
}
